package test1;

public class Test3 {
    public static void main(String[] args) {
        int[] array={1,2,3};
        try{
            array=null;
            System.out.println(array[2]);
            System.out.println("hahaha");
        }catch (Exception e){
            e.printStackTrace();
            System.out.println("发生异常了");
        }
        System.out.println("哈喽");
    }
}
